Sandbox Logo

class ComputeBuffer<T>

Summary

A GPU data buffer intended for use with a <see cref="T:Sandbox.ComputeShader" />. You can read and write arbitrary data to and from the CPU and GPU. This allows for efficient parallel data processing on the GPU. Different GPU buffer types can be used depending on the provided <see cref="T:Sandbox.ComputeBufferType" />. Using the default <see cref="F:Sandbox.ComputeBufferType.Structured" /> type buffers map to StructuredBuffer&lt;T&gt; and RWStructuredBuffer&lt;T&gt; in HLSL.

User Comments